package data;

public class ValidateUser_Output {
	String firstName, lastName, request;
	int indexedRecords;
	
	public ValidateUser_Output(String req){
		request =  req;
	}
	
	public ValidateUser_Output(String in_fName, String in_lName, int in_indexedRecs, String in_req) {
		firstName = in_fName;
		lastName = in_lName;
		indexedRecords = in_indexedRecs;
		request = in_req;
	}

	public String getRequest() {
		return request;
	}

	public void setRequest(String request) {
		this.request = request;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public int getIndexedRecords() {
		return indexedRecords;
	}

	public void setIndexedRecords(int indexedRecords) {
		this.indexedRecords = indexedRecords;
	}
	
	@Override
	public String toString(){
		if(this.getFirstName() == null){
			return "FALSE\\n\n";
		}
		
		StringBuilder sb = new StringBuilder();
		
		sb.append("TRUE\\n\n");
		sb.append(firstName + "\\n\n");
		sb.append(lastName + "\\n\n");
		sb.append(indexedRecords + "\\n\n");
		
		return sb.toString();
	}
}
